package lanqiao;
/**
 * @Project : AlgorithmLearning
 * @Package : LanQiao.PrepareForCompetition
 * @File : Q1641.java
 * @Author : WangRuoyu
 * @Date : 2023/3/31 14:32
 */

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Q1641 {
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String[] words = br.readLine().split(" ");

        long N = Long.parseLong(words[0]);
        long[] f = new long[100];

        for (int i = 1; i < f.length; ++i) {
            f[i] = 3 * f[i - 1] + 1;
            if (i == 1) {
                f[i] = 1;
            }
            if (f[i] >= N) {
                System.out.println(i);
                return;
            }
        }
    }
}
